﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

using BeachRunner.Utility;

namespace BeachRunner.BeachRunner
{
    /// <summary>
    /// Um das Spiel mit Touch-Eingaben zu steuern
    /// 
    /// Autor: Arne Blumentritt
    /// </summary>
    public class TouchController : PlayerController
    {
        override public bool IsMoovingLeft
        {
            get { return false; }
        }
        override public bool IsMoovingRight
        {
            get { return true; }
        }
        override public bool IsJumping
        {
            get { return IOTouchControl.IsTouchDown(IOTouchControl.RightArea); }
        }
        override public bool IsCrouching
        {
            get { return IOTouchControl.IsTouchDown(IOTouchControl.LeftArea); }
        }
        override public bool IsHandUp
        {
            get { return false; }
        }
    }
}
